﻿using System;
using System.Runtime.Serialization;

namespace Invoicing.Model.Products
{
    [DataContract]
    public class ProductRatioModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public int ProductID { get; set; }
        [Model]
        [DataMember]
        public int MaterialID { get; set; }
        [Model]
        [DataMember]
        public string Size { get; set; }
        [Model]
        [DataMember]
        public decimal Ratio { get; set; }

        #region Help
        [DataMember]
        public string Module { get; set; }
        [DataMember]
        public string MaterialName { get; set; }
        #endregion
    }

    [DataContract]
    public class ProductRatioCollection : ModelCollectionBase<ProductRatioModel> { }
}
